<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>登录</title>
    <script th:src="@{/js/lib/jquery/jquery-1.8.3.min.js}"></script>
    <link rel="stylesheet" th:href="@{/favicon.ico}"/>
    <link rel="stylesheet" th:href="@{/css/common/login.css}"/>
</head>
<script th:inline="javascript">
    var _ctx = [[${#httpServletRequest.getAttribute('ctx')}]];
    _ctx = _ctx==null || _ctx=="/" ? "" : _ctx;
    function getAuthCode() {
        $("#authCodeImg").attr("src",_ctx+"/authCode?r="+Math.random()*36);
    }
</script>
<body class="login">
<div class="login_logo" style="margin-top: 68px;">
    <img src="" th:attr="src=@{/images/logo.png}"/>
</div>
<div class="login_m">
    <form  th:attr="action=@{/login}" method="POST">
    <div class="login_boder">
        <div class="login_padding">
            <!--/*@thymesVar id="msg" type="templates"*/-->
            <span id="errorMsg" th:text="${msg}"></span>
            <label>
                <span>用户名：</span>
                <input type="text" id="username" name="account" class="txt_input txt_input2"/>
            </label>

            <label>
                <span>密码：&nbsp;&nbsp;&nbsp;&nbsp;</span>
                <input type="password" name="password" id="userpwd" class="txt_input"/>
            </label>
            <label>
                <span>验证码：</span>
                <input type="text" name="authCode" id="authCode" class="txt_input"/>
                <img id="authCodeImg" style="cursor: pointer" th:src="@{/authCode}" onclick="getAuthCode()" />
            </label>
            <div class="rem_sub">
                <label>
                    <span id="remeberMe">
                        <label>记住我</label>
                        <input id="rememberChkBox" name="rememberMe" value="1" type="checkbox" class="ace rememberChkbox"/>
                    </span>
                    <input type="submit" name="loginBtn" id="button" class="sub_button"
                            value="登录" style="opacity: 0.7;"/>
                </label>
            </div>
        </div>
    </div>
    </form>
</div>
</body>
</html>